<ui:composition 
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">

<p:menubar>

    <p:menuitem value="Nuevo Item" icon="blank16"
                actionListener="#{menuBean.nuevoHijo}" update="@form" process="@this" />
    
    <p:menuitem id="save" icon="save16"
                value="Guardar"
                actionListener="#{menuBean.guardar}"
                update="@form" />   
    
</p:menubar>

<p:hotkey bind="ctrl+s" update="@form" actionListener="#{menuBean.guardar}" />

</ui:composition>

